package com.ghxxzx.daglcustom.business_form.web.listener;

import com.ghxxzx.daglcustom.business_form.service.FormTypeService;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;
import org.tmsps.ne4spring.utils.SpringUtil;

import java.util.ArrayList;
import java.util.List;

public class ParallelListener implements ExecutionListener {

	private static final long serialVersionUID = 1L;

	@Override
	public void notify(DelegateExecution execution) throws Exception {
		
		FormTypeService formTypeService = SpringUtil.getBean(FormTypeService.class);
		
		
		List<String> userList = new ArrayList<>();
		userList.add("zhangsan");
		userList.add("lisi");
		execution.setVariable("userList", userList);
		
	}

}
